home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
vb6_sr_3
/
getshort.frm
next >
Wrap
Text File
|
1999-02-25
|
2KB
|
68 lines
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 2715
ClientLeft = 60
ClientTop = 375
ClientWidth = 7755
LinkTopic = "Form1"
ScaleHeight = 2715
ScaleWidth = 7755
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton Command1
Caption = "Convert File Name"
Height = 375
Left = 2640
TabIndex = 2
Top = 2040
Width = 2535
End
Begin VB.TextBox Text2
Height = 375
Left = 120
TabIndex = 1
Top = 1440
Width = 7335
End
Begin VB.TextBox Text1
Height = 375
Left = 120
TabIndex = 0
Top = 600
Width = 7335
End
Begin VB.Label Label2
Alignment = 2 'Center
Caption = "Here you can see the returned short file name."
Height = 255
Left = 1080
TabIndex = 4
Top = 1080
Width = 5415
End
Begin VB.Label Label1
Alignment = 2 'Center
Caption = "Enter a full path to a file with a long file name. For example: C:\windows\desktop\your long file name here.txt"
Height = 495
Left = 1200
TabIndex = 3
Top = 0
Width = 4935
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
'variable to hold input path
Dim DosPathName As String
DosPathName = GetDosPath(Text1.Text)
Text2.Text = DosPathName
End Sub